﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Viewer.BusinessObject.BusinessEntities;
using Ext.Net;

namespace Viewer.Code.UserControls
{
    public partial class UCTaoMoiLoaiMa : System.Web.UI.UserControl
    {
        CommonCode common = new CommonCode();
        protected void Page_Load(object sender, EventArgs e)
        {
           
        }
        protected void btnSave_Click(object sender, DirectEventArgs e)
        {
            common.InsertCommonCode(0, string.Empty, txtGhiChu.Text, txtLoaiMa.Text,common.LoaiMa);
            ((HeThongDuLieu)this.Page).LoadData();
            wdTaoMoiLoaiMa.Hide();
        }
        public void ShowPopUp()
        {
            txtLoaiMa.Text = string.Empty;
            txtGhiChu.Text = string.Empty;
            wdTaoMoiLoaiMa.Show();
        }
    }
}